

import { type RouteRecordRedirectOption } from 'vue-router'

export interface ListMenu {
    id: string | number
    title: string
    icon: string
    path: string
    name: string
    component: string
    children: Array<ListMenu>
    redirect: RouteRecordRedirectOption
}

const routerData: Array<ListMenu> =
    [
        {
            "id": 1,
            "title": "系统管理",
            "icon": "el-icon-s-operation",
            "path": "",
            "name": "sys:manage",
            "component": "",
            "redirect": "",
            "children": [
                {
                    "id": 2,
                    "title": "用户管理",
                    "icon": "el-icon-s-custom",
                    "path": "/sys/users",
                    "name": "sys:user:list",
                    "component": "sys/users",
                    "redirect": "",
                    "children": []
                },
                {
                    "id": 3,
                    "title": "角色管理",
                    "icon": "el-icon-rank",
                    "path": "/sys/roles",
                    "name": "sys:role:list",
                    "component": "sys/roles",
                    "redirect": "",
                    "children": []
                },
                {
                    "id": 4,
                    "title": "菜单管理",
                    "icon": "el-icon-menu",
                    "path": "/sys/menus",
                    "name": "sys:menu:list",
                    "component": "sys/menus",
                    "redirect": "",
                    "children": []
                }
            ]
        }
    ]

export default routerData